from django.db import models
from utils.BaseModel import BaseModel


# Create your models here.
class User(BaseModel):
    username = models.CharField(max_length=20, null=True)
    password = models.CharField(max_length=20, null=True)
    email = models.EmailField(null=True)
    phone = models.CharField(max_length=20, null=True)
    score = models.IntegerField(null=True, default=0)

    class Meta:
        db_table = 'user'

    def __str__(self):
        return self.username
